package leetcode_周赛._2021._202103._20210328;

/**
 * @author yzh
 * @data 2021/3/28 10:59
 */
public class _5715 {
    public static void main(String[] args) {
        System.out.println(new _5715().reinitializePermutation(8));
    }

    public int reinitializePermutation(int n) {
        int tem = 1;
        for (int i = 4; i <= n; i+=2) {
            if (i == 4) tem = 2;
            if (i == 6) tem = 4;
            if (i >= 10) tem += 2;
        }
        return tem;
    }
}
